package com.learn.springboot.config;


/**
 * 应用常量
 */

public class AppConstants {



    public static final String CURRENT_USER = "user";

    /**
     * 系统不安全字符
     */
    public static final String UNSAFE_LETTERS_REG = "\\||\\$|%|'|\'|<|>|\\\\|&lt;&gt;|&quot;|&#39;|(\\s+or\\s+)|(\\s+and\\s+)";


    public static final int MAX_LOG_DATA_SIZE = 20;

    public static final int MAX_REQUEST_DATA_SIZE = 2000;

    /**
     * EXCEL_MAX_ROWS 导出数据 最大上限
     */
    public static final Long EXCEL_MAX_ROWS = 50000L;

    /**
     * 降序
     */
    public static final String SORT_DESC = "desc";
    /**
     * 升序
     */
    public static final String SORT_ASC = "asc";

    public static final String IMAGE_SUFFIX = "image/jpg;image/png;image/jpeg";

    /**
     * 生成缩略图临时图片路径
     */

    public static final String DEFAULT_DELIMITER_STRING = ",";

    public static final String DEFAULT_VERSION = "1.0";


    /**
     * 导出excel每页最大数量
     */
    public static final int MAX_EXPORT_SIZE_PER_PAGE = 10000;

    /**
     * 导出excel每页最大数量
     */
    public static final int MAX_EXPORT_SIZE = 50000;


    /**
     * 逗号
     */
    public static final String COMMA = ",";


}
